﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Model.PermissionManagement
{

    /// <summary>
    /// 架构角色对应表，部门和角色绑定，并非所有的都需要绑定，平台不需要，公司的就需要
    /// </summary>
    [Table("PM_DepartmentRole")]
    public class DepartmentRole :BaseModel
    {
        /// <summary>
        /// 部门Id
        /// </summary>
        public Guid DepartmentId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        public Guid RoleId { get; set; }

        /// <summary>
        /// 状态，是否启用
        /// </summary>
        public bool States { get; set; }
    }
}
